package com.xlzcx.xltz.utils;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 作者: 李咨辰
 * 文件名: MyWebMVCConfig.java
 * 路径: com.yuntu.redisdemo.demos.web
 * 时间: 2024-05-27 11:25
 * 版本: 1.0
 * 描述: TODO 图片
 **/
@Configuration
public class MyWebMVCConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/img/**")
                .addResourceLocations("file:/item/wj/");
    }
}
